import request from '@/utils/request'

// 获取日常安全检查列表
export function getDailyList(query) {
  return request({
    url: '/archive/safetyCheck/list',
    method: 'get',
    params: query
  })
}

// 新增日常安全检查
export function addsafetyCheck(data) {
  return request({
    url: '/archive/safetyCheck',
    method: 'post',
    data: data
  })
}

// 获取日常安全检查详情
export function getDsDetail(id) {
  return request({
    url: '/archive/safetyCheck/'+id,
    method: 'get'
  })
}

// 修改日常安全检查
export function updatesafetyCheck(data) {
  return request({
    url: '/archive/safetyCheck/edit',
    method: 'put',
    data: data
  })
}

// 删除日产安全检查
export function deletesafetyCheck(id) {
  return request({
    url: '/archive/safetyCheck/' + id,
    method: 'delete'
  })
}
